import request from "../../../utils/request";
import { OrdersData, OrdersResponseData } from "./type";
enum API {
    // 获取 扶贫商品 信息 POST
    GETORDERSINFO_URL = '/order/selectAllOrderPage',
    //  编辑 订单状态  PUT
    OPERATEORDERSINFO_URL = '/order/orderEdit'
}
export const reqGetOrdersInfo = (data: OrdersData) => request.post<any, OrdersResponseData>(API.GETORDERSINFO_URL, data)
export const reqOperateOrdersInfo = (id: string | number, orderStatus: number | string) => request.put<any, any>(API.OPERATEORDERSINFO_URL + `?id=${id}&orderStatus=${orderStatus}`)